//输入今年是第几天 今天不算

#include <stdio.h>
int main(){
	int year = 0;
	int month = 0;
	int day = 0;
	int sum = 0;
	printf("输入年月日：");
	scanf("%d%d%d",&year,&month,&day);
	switch(month-1){
		case 11:
			sum = sum + 30;
		case 10:
			sum = sum + 30;
		case 9:
			sum = sum + 30;
		case 8:
			sum = sum + 31;
		case 7:
			sum = sum + 31;
		case 6:
			sum = sum + 30;
		case 5:
			sum = sum + 31;
		case 4:
			sum = sum + 30;
		case 3:
			sum = sum + 31;
		case 2:
			if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0){
				sum = sum + 29;
			}else{
				sum = sum + 28;
			}
		case 1:
			sum = sum + 31;
		case 0:
			sum = sum + day - 1;
			break;
		default:
			printf("error");
			break;	
	}
	printf("是今年的%d天\n",sum);

	return 0;
}
